const Core = require('@alicloud/pop-core');

var client = new Core({
  accessKeyId: 'LTAI4G4FKNYRW2gHHf38Gqhq',
  accessKeySecret: 'C06oZc37kqtTcQ3yAxfUEz5nBi04QC',
  // securityToken: '<your-sts-token>', // use STS Token
  endpoint: 'https://dysmsapi.aliyuncs.com',
  apiVersion: '2017-05-25'
});

var params = {
  "PhoneNumbers": "17751294136",
  "SignName": "皇家baby",
  "TemplateCode": "SMS_206645415",
  "TemplateParam": "{\"code\":\"13242\"}"
}

var requestOption = {
  method: 'POST'
};

client.request('SendSms', params, requestOption).then((result) => {
  console.log(JSON.stringify(result));
}, (ex) => {
  console.log(ex);
})
